home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part2 / 10609 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.7 KB

  1. Path: news.mindspring.com!chmood
  2. From: chmood@photobooks.atdc.gatech.edu (Charlie Moody)
  3. Newsgroups: comp.sys.amiga.misc
  4. Subject: Re: AmigaOS 4.x features
  5. Date: 30 Mar 1996 23:29:55 GMT
  6. Organization: Photobooks Inc
  7. Message-ID: <4jkg5j$dva@B1FF.mindspring.com>
  8. References: <4j7ein$a6v@B1FF.mindspring.com> <4jc7g1$ipq@news.rhrz.uni-bonn.de> <4jfm8i$b5n@B1FF.mindspring.com> <4jgc6q$a61@reuter.cse.ogi.edu>
  9. NNTP-Posting-Host: photobooks.atdc.gatech.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. On 29 Mar 1996 09:57:46 GMT, Tony Leneis wrote:
  13. : In article <4jfm8i$b5n@B1FF.mindspring.com>,
  14. : Charlie Moody <chmood@photobooks.atdc.gatech.edu> wrote:
  15. : >
  16. : >: :  - adoption of *nix pattern-matching;  it stands head, shoulders, and ankles 
  17. : >: :    above the original Amiga 'system' in power, simplicity, and flexibility.
  18.  
  19. :     I'll grant that * is easier than #?, but the Amiga pattern matching
  20. : is more powerful than traditional UNIX globbing.  As was pointed out earlier,
  21. : you can always enable a UNIX-ish * by using a utility like wildstar.
  22.  
  23. It may be *as* powerful, but not moreso (and what the heck is 'UNIX 
  24. globbing'?), and certainly not as well thought out.  And that's the point 
  25. about enabling the '*':  it's easy, and not nearly as useful as it would 
  26. be in context.
  27.  
  28.  
  29. : >Not just '?' and '*', but also the bracketed ranging, a la 'mv 
  30. : >fred-[a-z].pgm ram:'.
  31.  
  32. :     You can do that now.  Have you ever *tried* it before?  For example:
  33.  
  34.     [3.1-specific example removed]
  35.  
  36. : This is with the standard shell and dir command.  Look on pages 3-16 through
  37. : 3-18 in the Amiga OS 3.1 DOS manual.
  38.  
  39. Rumour has it that I'll be running 3.1 by Tuesday, so I'll let you know....
  40.  
  41.  
  42. : Of course, if you're running 2.04 or
  43. : earlier (I don't know about 2.1 or 3.0, though I'd assume 3.0 does square
  44. : brackets), you can get the same effect by using the ()'s and | operators.
  45.          ^^^^^^^^^^^^^^^^^^^^^^^
  46.  
  47. Yes, I can get the same effect as in can under unix pattern-matching...all
  48. I have to do is use a completely different, much more cumbersome, and much 
  49. less intuitive (read: badly designed) method. 
  50.  
  51. That's not "more flexible";  it's not "more powerful";  and it sure as 
  52. h*ll ain't any easier.  Isn't it basic common sense to avoid re-inventing 
  53. the wheel *whenever* possible?
  54.  
  55.  
  56. : For example, "dir sys:(a|b|c|e)#?".
  57.  
  58. [additional references to documentation for more counter-intuitive,]
  59. [anti-logical methods deleted]
  60.  
  61.         dir sys:[a-e]*
  62.  
  63. Logical, simple, fast:  elegant.
  64.  
  65.  
  66. [explanation of how this one really *is* a better wheel deleted]
  67.  
  68. ; The main problem,
  69. : if you want to call it a problem, is that it's different.  It also can be a
  70. : little more awkward to use for certain patterns, but it always can get the
  71. : job done.  
  72.  
  73. The fact that the kludge can be worked around does nothing to redeem the 
  74. kludge.  It's still bad design with no significant benefit from making 
  75. the sacrifices, and it should be thrown overboard at the first opportunity.
  76.  
  77.  
  78. : I'd certainly take the functionality of the # operator any day
  79. : over the UNIX * operator (provided I've got a match-any-character operator
  80. : to go with it.)
  81.  
  82. You'd gladly throw away the match-any-character option, provided you've 
  83. got a match-any-character option to replace it???
  84.  
  85. : -Tony
  86. : -- 
  87. : =====///===Hi!==I'm=a=.signature=virus!==Copy=me=to=your=.signature!===///==
  88. : __  /// leneis@cse.ogi.edu          From the desk of:   Hillary,  __  ///   
  89. : \\\///  tony@plaza.ds.adp.com       -->Tony Leneis<--   Gennifer, \\\///Only
  90. :  \XX/   aleneis@gauss.math.hmc.edu  HMC '91  Go Stags!  AND NOW US!\XX/Amiga
  91.  
  92. --
  93. "Christians held attitudes that did little to endear them to Romans.  Bishop
  94. Irenaeus, for example, declared, "We have no need of the law for we are 
  95. already far above it in our godly behaviour."
  96.              -  "The Dark Side of Christian History", H. Ellerbe
  97.